package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.Live;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Dean on 2017-7-27.
 */
public interface LiveDao extends JpaRepository<Live, Integer>,JpaSpecificationExecutor<Live> {
    int editLive(Live live);
    int del(int id);
    PageBean list(PageBean pageBean, Live live);
    int updateReading(int id);
    void updateCommentNum(Integer id, Integer num);
    int toggleComment(int id);
}
